package com.lex.service;

import com.lex.common.api.CommonResult;
import com.lex.data.admin.model.LexCmsMenu;
import com.lex.data.admin.model.LexCmsUsers;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;


public interface BaseService {

    //获取用户信息
    UserDetails getUserInfo(String username);
    /**);
     * 获取用户信息 返回userDetails
     */
    UserDetails loadUserByUsername(String username);

    //查询用户信息
    LexCmsUsers getUserInfoByAccount(String account);
    //获取缓存信息
    SystemCacheService getCacheService();
    //登录后获取用户信息
    CommonResult getLoginUserInfo();
    //登录
    CommonResult login(String username, String password);
    //退出登录

    CommonResult logout(String token);
}
